﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace org.nutilities.common
{
    [DataContract(Name = "request", Namespace = "http://www.nutilities.org/request")]
    public partial class Request
    {
        [DataMember(Name = "requestParams", IsRequired=true)]
        public RequestParameters RequestParameters { get; set; }

        public Request()
        {
            this.RequestParameters = new RequestParameters();
        }
    }

    [CollectionDataContract(Name = "requestParams", Namespace = "http://www.nutilities.org/request", ItemName = "param")]
    public partial class RequestParameters : List<RequestParameter> { }
    
    [DataContract(Name = "param", Namespace = "http://www.nutilities.org/request")]
    public partial class RequestParameter
    {
        [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)]
        public string Name { get; set; }

        [DataMember(Name = "value", IsRequired = true, EmitDefaultValue = false)]
        public string Value { get; set; }
    }
}
